package com.mckillion.Exercise12;

	public class Car extends Vehicle {
	
		public Car(){
			drivingBehaviour = new RoadBehaviour();
			waterBehaviour = new SinkBehaviour();
		}
		
	public void setDrivingBehaviour(LandBehaviour db){
		drivingBehaviour = db;
	}
	
	public void setWaterBehaviour(WaterBehaviour wb){
		waterBehaviour = wb;
	}

	@Override
	public void display() {
		System.out.println("I'm a Car");
	}
}
